import { Route, Switch, Redirect } from "react-router-dom"
import { Home } from './Home';
import { Bbs } from "./Bbs";
import { Inform } from './Inform';
import { My } from './My';
import { Video } from "./Video";
import { Detail } from './Detail';
import { Login } from './Login';
import { Register } from './Register';
import { MyAttention } from './../components/MyAttention/index';
import { MyLike } from './../components/MyLike/index';
import { Author } from "./Author";
import { Rank } from "../components/Rank";
export class Index extends React.Component {
    render() {
        return (
            <Switch>
                <Redirect from="/" exact={true} to="/home" />
                <Route path="/home" component={Home} />
                <Route path="/bbs" component={Bbs} />
                <Route path="/inform" component={Inform} />
                <Route path="/my" component={My} />
                <Route path="/login" component={Login} />
                <Route path="/register" component={Register} />
                <Route path="/video/:vid" component={Video} />
                <Route path="/detail/:page/:id" component={Detail} />
                <Route path="/myAttention" component={MyAttention} />
                <Route path="/myLike" component={MyLike} />
                <Route path="/author/:id" component={Author} />
                <Route path="/rank" component={Rank} />
            </Switch>
        )
    }
}